package com.kzx.blog.service.model;

import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @author kongz
 * @version 1.0 2021/12/2 14:43
 * @description 分页查询参数
 */
@Data
public class PagingParam {
    /*
    当前页数
     */
    @Min(value = -1, message = "页码不能小于-1")
    protected int pageIndex;
    /*
    页面大小
     */
    @Min(value = -1, message = "页面大小不能小于-1")
    protected int pageSize;
}
